import com.lheia.pipeline.GormPipeline
import com.lheia.scheduler.RedisScheduler
import com.lheia.tool.DownLoadManager
import org.openqa.selenium.remote.DesiredCapabilities
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor

// Place your Spring DSL code here
beans = {
    taskExecutor(ThreadPoolTaskExecutor){
        /**
         *  线程池活跃的线程数
         */
        corePoolSize=5
        /**
         * 线程池最大活跃的线程数
         */
        maxPoolSize=10
        /**
         *  队列的最大容量
         */
        queueCapacity=600
    }

    downLoadManager(DownLoadManager){ bean ->
            bean.autowire = true
    }

    //调用gorm
    gormPipeline(GormPipeline){
        pipelineService = ref("pipelineService")
    }
    //调度器
    resdisScheduler(RedisScheduler,ref("redisService"))
    /**
     * phantomJS驱动配置
     */
    dcaps(DesiredCapabilities){
        def map = new HashMap()
    }
}


